package com.yeedingtong.config;

/** 应用程序配置对象
 * @author kiven
 *
 */
public class Configure implements JdbmConfig {

	private static Configure _instance = new Configure();
	public static Configure instance() {
		return _instance;
	}
	
	
	private int reqPort = 10086;
	private int pubPort = 10087;
	private String jdbmFile = "data.jdbm";
	private boolean jdbmDisableTransactions = true;
	private int jdbmCacheSize = 100;
	
	public int getReqPort() {
		return reqPort;
	}

	public void setReqPort(int reqPort) {
		this.reqPort = reqPort;
	}

	public int getPubPort() {
		return pubPort;
	}

	public void setPubPort(int pubPort) {
		this.pubPort = pubPort;
	}

	public String getJdbmFile() {
		return jdbmFile;
	}

	public void setJdbmFile(String jdbmFile) {
		this.jdbmFile = jdbmFile;
	}

	public boolean getJdbmDisableTransactions() {
		return jdbmDisableTransactions;
	}

	public void setJdbmDisableTransactions(boolean jdbmDisableTransactions) {
		this.jdbmDisableTransactions = jdbmDisableTransactions;
	}

	public int getJdbmCacheSize() {
		return jdbmCacheSize;
	}

	public void setJdbmCacheSize(int jdbmCacheSize) {
		this.jdbmCacheSize = jdbmCacheSize;
	}
}
